<?php
/**
 * Description of DisciplinaManager
 *
 * @author rocco
 */
require_once  'DisciplinaDataManager.php';
class DisciplinaManager
{
    private static $instance;

    public static function getInstance()
    {
        if(self::$instance == null)
        {
            $c = __CLASS__;
            self::$instance = new $c;
        }
        return self::$instance;
    }

    public function insertDisciplina($connection, $nome, $descrizione)
    {
        DisciplinaDataManager::getInstance()->insertDisciplina($connection, $nome, $descrizione);
    }

     public function getDiscipline($connection)
    {
        return DisciplinaDataManager::getInstance()->getDiscipline($connection);
    }
}
?>
